home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / cmds / netroute / RCS / netroute.man,v < prev   
Encoding:
Text File  |  1992-06-23  |  11.4 KB  |  414 lines

  1. head     1.6;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.6
  10. date     92.06.23.11.31.23;  author jhh;  state Exp;
  11. branches ;
  12. next     1.5;
  13.  
  14. 1.5
  15. date     89.06.29.10.26.15;  author mendel;  state Exp;
  16. branches ;
  17. next     1.4;
  18.  
  19. 1.4
  20. date     89.06.08.11.55.03;  author mendel;  state Exp;
  21. branches ;
  22. next     1.3;
  23.  
  24. 1.3
  25. date     88.12.30.10.05.22;  author ouster;  state Exp;
  26. branches ;
  27. next     1.2;
  28.  
  29. 1.2
  30. date     88.12.22.10.56.49;  author ouster;  state Exp;
  31. branches ;
  32. next     1.1;
  33.  
  34. 1.1
  35. date     88.11.13.13.57.37;  author brent;  state Exp;
  36. branches ;
  37. next     ;
  38.  
  39.  
  40. desc
  41. @man page for the netroute program
  42. @
  43.  
  44.  
  45. 1.6
  46. log
  47. @uses new Host library, does deletion
  48. @
  49. text
  50. @' $Header: /sprite/src/cmds/netroute.new/RCS/netroute.man,v 1.1 92/06/23 11:19:10 jhh Exp Locker: jhh $ SPRITE (Berkeley)
  51. .so \*(]ltmac.sprite
  52. .HS NETROUTE cmds
  53. .BS
  54. .SH NAME
  55. netroute \- Set up host names, addresses, and machine types
  56. .SH SYNOPSIS
  57. \fBnetroute\fR  [\fBoptions\fR]
  58. .SH OPTIONS
  59. .IP "[none]"
  60. Print out the kernel's route table.
  61. .IP "\fB\-h \fIhost\fR" 5
  62. The host to operate upon. Either a hostname or Sprite ID.
  63. .IP "\fB\-f \fIfile\fR"
  64. Use given file for the Sprite host database.
  65. .IP "\fB\-g \fIfile\fR"
  66. Use given file for the Sprite gateway database.
  67. .IP "\fB\-favor \fInet\fR"
  68. Try to establish routes across networks of type \fInet\fR.
  69. .IP "\fB\-disfavor \fInet\fR" 
  70. Try not to establish routes across networks of type \fInet\fR.
  71. .IP "\fB\-ether \fIff:oo:oo:bb:aa:rr@@aa.bb.cc.dd\fR" 40
  72. Establish a route to a host with these ethernet and internet addresses.
  73. .IP "\fB\-ultra \fIhh/ii@@aa.bb.cc.dd\fR"
  74. Establish a route to a host with these ultranet and internet addresses.
  75. .IP "\fB\-fddi \fIqq:ww:ee:rr:tt:yy@@aa.bb.cc.dd\fR"
  76. Establish a route to a host with these fddi and internet addresses.
  77. .IP "\fB\-p\fR" 5
  78. Print routes.  
  79. .IP "\fB\-i\fR"
  80. Install routes. This is the default operations if no operations are given.
  81. .IP "\fB\-d \fIrouteID\fR"
  82. Delete the route with the given ID.
  83. .IP "\fB\-m \fImachine_type\fR"
  84. Host's machine type, where the host is specified by the \fB-h\fR option.
  85. .IP "\fB\-v\fR"
  86. Verbose.
  87. .IP "\fB\-n\fR"
  88. Print actions instead of doing them.  Not fully supported yet.
  89. .BE
  90. .SH INTRODUCTION
  91. .LP
  92. This command is used to access the kernel's internal route table.
  93. This route table is used to determine routes for sending RPC packets
  94. between the hosts. The route table has nothing to do with user-level
  95. network communication via TCP/IP or similar protocols.
  96. Normally \fBnetroute\fR is invoked during the boot script to install routes
  97. to all the hosts found in \fC/etc/spritehosts\fR 
  98. (\fC/etc/spritehosts.new\fR during the transition period to the new 
  99. spritehosts file format). 
  100. The \fC/etc/spritehosts\fR file 
  101. contains the spriteID of the host,
  102. a network type and address (i.e. ethernet),
  103. an internet address,
  104. a machine type,
  105. and a name plus optional aliases.
  106. The spriteID is used internally for RPC communication between Sprite hosts.
  107. The network type and network address are used to map the Sprite ID
  108. to the correct local network address.  The internet address is used
  109. for the internet protocols.  The machine type is used when expanding
  110. the string ``$MACHINE'' inside pathnames.  The file server must know
  111. its clients machine types in order to do this correctly.  The names
  112. are used to make console error messages contain a human understandable
  113. host name, and are also used with the internet library routines.
  114. .SH USAGE
  115. .LP
  116. There are three operations that can be performed on routes.  One
  117. is to print them, another is to install them, and the last is to
  118. delete them.
  119. These operations are specified with the \fBp\fR,
  120. \fBi\fR and \fBd\fR options.
  121.  
  122. .SH INSTALLING ROUTES
  123. .LP
  124. For installing hosts, the information is normally taken from a
  125. host database file.  A host can be installed from scratch by specifying
  126. its name (\fBh\R option), machine type (\fBm\R option), and
  127. network addresses.  The network addresses are specified using
  128. the \fBether\R, \fBultra\fR, and \fBfddi\fR options.  The strings
  129. passed to these options must be of the form \fInet_address@@inet_address\fR
  130. because each network interface has both a network address and
  131. an internet address.  At least one must be specified.
  132. .LP
  133. Routes to hosts can be installed only over one network type.  When
  134. they are installed, \fBnetroute\fR uses a list of types to check
  135. in a predefined order (use the \fBv\fR option to find this order.)
  136. It will try to establish a route using the first network type;
  137. if that fails, it will try the next, etc.  This list can be changed
  138. dynamically using the \fBfavor\fR and \fBdisfavor\fR options to
  139. either favor one network type most or one network type the least,
  140. respectively.  Both options can be used at the same time.
  141. .LP
  142. For example, normally routes are installed over ethernet.  
  143. To change it so that fddi routes are installed where possible,
  144. use:
  145. .sp
  146. % netroute -i -favor fddi
  147. .sp
  148. This will install fddi routes to those machines that support fddi
  149. routes, and ethernet routes to the remainder.
  150. .LP
  151. When new routes are installed successfully, the previous route is
  152. removed.
  153.  
  154. .SH DELETING ROUTES
  155.  
  156. .LP
  157. Routes are deleted by specifying a route ID using the
  158. \fBd\fR option.
  159.  
  160. .SH PRINTING ROUTES
  161. .LP
  162. When routes are printed, the following information is given about
  163. each route: the Sprite ID of the host to which the route goes;
  164. the hostname and the machine type of that host; a description of
  165. the route from the kernel; the route ID, and the route ID shifted
  166. by right by 16 places; the network type of the route;  the
  167. network address of the interface from which the route sends
  168. packets;  the protocol that the route serves;
  169. the route flags; a reference count to the route; min and max
  170. packet sizes over the route; min and max RPC sizes over the route;
  171. and the network address of the destination host to which packets
  172. are sent.
  173.  
  174. .SH FILES
  175. .DS L
  176. \fB/etc/spritehosts\fR    Contains the old host database
  177. \fB/etc/spritehosts.new\fR Contains the new host database.
  178. .DE
  179. .SH KEYWORDS
  180. ethernet, ultranet, fddi, internet, net, route, $MACHINE 
  181. @
  182.  
  183.  
  184. 1.5
  185. log
  186. @Added set inet address command.
  187. @
  188. text
  189. @d1 1
  190. a1 1
  191. ' $Header: /a/newcmds/netroute/RCS/netroute.man,v 1.4 89/06/08 11:55:03 mendel Exp Locker: mendel $ SPRITE (Berkeley)
  192. d8 1
  193. a8 3
  194. \fBnetroute\fR  \fB\-p\fR [\fB\-D\fR]
  195. .br
  196. \fBnetroute\fR  [\fB\-f \fIfile\fR]
  197. d10 4
  198. a13 4
  199. .IP "\fB\-p\fR" 14
  200. Print out the kernel's route table. Other options are ignored.
  201. .IP "\fB\-D\fR"
  202. Don't strip Domain suffix off the host name.
  203. d16 24
  204. a39 20
  205. .IP "\fB\-h \fIhostname\fR"
  206. Install a route for a Sprite hostID.  Route info is taken from \fB\-f \fIfile\fR
  207. or from standard host database. \fIHostname\fR may be a Sprite hostname 
  208. or Sprite ID.
  209. .IP "\fB\-h \fIspriteID\fR"
  210. Used \fIspriteID\fR as the Sprite ID for host specified by the -h option.
  211. .IP "\fB\-i \fIinetAddr\fR"
  212. Used \fIinetAddr\fR as the internet address for host specified by -h option
  213. (aa.bb.cc.dd format).
  214. .IP "\fB\-e \fIetherAddr\fR"
  215. Used \fIetherAddr\fR as the ethernet address for host specified by -h option.
  216. (aa:bb:cc:dd:ee:ff format).
  217. .IP "\fB\-m \fImachType\fR"
  218. Used \fIfImachType\fR as the machine type for host specified by -h option.
  219. (\fBsun2 sun3 sun4 spur\fR, etc.)
  220. .IP "\fB\-t \fInetType\fR"
  221. Define the net type of the route for the host specified by -h option. 
  222. (Must be \fBether\fR or \fRinet\fR)
  223. .IP "\fB\-s\fR"
  224. Set the internet address used by this host.
  225. d42 11
  226. a52 5
  227. .PP
  228. This command is used to set the kernel's internal route table.
  229. Normally this is invoked during the boot script with a -f argument
  230. that specifies a file from which to get the information.  The standard
  231. file is \fB/etc/spritehosts\fR, and it contains the spriteID of the host,
  232. d66 59
  233. a124 9
  234. If the \fB-p\fR option is specified the kernel routing tables are printed
  235. and no routes are altered. 
  236. The \fB-s\fR option instructs netroute to initialized the kernel idea of 
  237. this hosts interaddress.  The interaddress is taken from the host 
  238. database but may be overridden with the \fB-i\fR option.
  239. The \fB-t\fR, \fB-e\fR, \fB-i\fR, \fB-m\fR, and \fB-n\fR options are used to 
  240. override the defaults in the host database. If the host specified with the
  241. \fB-h\fR option is not present in the database 
  242. the \fB-e\fR, \fB-i\fR, and \fB-m\fR and \fB-n\fR option must be present.
  243. d127 2
  244. a128 1
  245. \fB/etc/spritehosts\fR    Contains the standard host database
  246. d131 1
  247. a131 1
  248. ethernet, internet, net, route, $MACHINE 
  249. @
  250.  
  251.  
  252. 1.4
  253. log
  254. @Rewrote to support inet routes.
  255. @
  256. text
  257. @d1 1
  258. a1 1
  259. ' $Header: /a/newcmds/netroute/RCS/netroute.man,v 1.3 88/12/30 10:05:22 ouster Exp Locker: mendel $ SPRITE (Berkeley)
  260. d36 2
  261. d60 3
  262. @
  263.  
  264.  
  265. 1.3
  266. log
  267. @More format upgrades.
  268. @
  269. text
  270. @d1 1
  271. a1 1
  272. ' $Header: /a/newcmds/netroute/RCS/netroute.man,v 1.2 88/12/22 10:56:49 ouster Exp Locker: ouster $ SPRITE (Berkeley)
  273. d8 1
  274. a8 1
  275. \fBnetroute\fR  \fB\-t\fR [\fB\-D\fR]
  276. d10 1
  277. a10 7
  278. \fBnetroute  \fB\-f \fIfile\fR
  279. .br
  280. \fBnetroute  \fB\-h \fIspriteID \fB\-m \fImachType  \fB\-e \fIetherAddr\fR
  281. .br
  282. \fBnetroute  \fB\-n \fIhostname \fB\-e \fIetherAddr\fR
  283. .br
  284. \fBnetroute  \fB\-i \fIinetAddr \fB\-e \fIetherAddr\fR
  285. d12 2
  286. a13 2
  287. .IP "\fB\-t\fR" 14
  288. Print out the kernel's route table.
  289. d17 7
  290. a23 6
  291. Install routes from the given file.
  292. .IP "\fB\-h \fIhostID\fR"
  293. Install a route for a Sprite hostID.  Need \fB\-m\fR and \fB\-e\fR.
  294. .IP "\fB\-n \fIhostname\fR"
  295. Install a route for the given host.  Route info taken from \fB\-f \fIfile\fR
  296. or from standard host database.
  297. d25 2
  298. a26 3
  299. Install a route for the given internet address (aa.bb.cc.dd format).
  300. Route info taken from \fB\-f \fIfile\fR
  301. or from standard host database.
  302. d28 2
  303. a29 1
  304. aa:bb:cc:dd:ee:ff format.
  305. d31 5
  306. a35 1
  307. Defines the machine type of the host. (\fBsun2 sun3 sun4 spur\fR, etc.)
  308. d55 7
  309. @
  310.  
  311.  
  312. 1.2
  313. log
  314. @Upgrades to new man page format.
  315. @
  316. text
  317. @d1 1
  318. a1 1
  319. ' $Header: /a/newcmds/netroute/RCS/netroute.man,v 1.1 88/11/13 13:57:37 brent Exp Locker: ouster $ SPRITE (Berkeley)
  320. d8 1
  321. a8 1
  322. \fBnetroute\fR  \fB-t\fR [\fB-D\fR]
  323. d10 1
  324. a10 1
  325. \fBnetroute  \fB-f \fIfile\fR
  326. d12 1
  327. a12 1
  328. \fBnetroute  \fB-h \fIspriteID \fB-m \fImachType  \fB-e \fIetherAddr\fR
  329. d14 1
  330. a14 1
  331. \fBnetroute  \fB-n \fIhostname \fB-e \fIetherAddr\fR
  332. d16 1
  333. a16 1
  334. \fBnetroute  \fB-i \fIinetAddr \fB-e \fIetherAddr\fR
  335. d18 1
  336. a18 1
  337. .IP "\fB-t\fR" 14
  338. d20 1
  339. a20 1
  340. .IP "\fB-D\fR"
  341. d22 1
  342. a22 1
  343. .IP "\fB-f \fIfile\fR"
  344. d24 4
  345. a27 4
  346. .IP "\fB-h \fIhostID\fR"
  347. Install a route for a Sprite hostID.  Need \fB-m\fR and \fB-e\fR.
  348. .IP "\fB-n \fIhostname\fR"
  349. Install a route for the given host.  Route info taken from \fB-f \fIfile\fR
  350. d29 1
  351. a29 1
  352. .IP "\fB-i \fIinetAddr\fR"
  353. d31 1
  354. a31 1
  355. Route info taken from \fB-f \fIfile\fR
  356. d33 1
  357. a33 1
  358. .IP "\fB-e \fIetherAddr\fR"
  359. d35 1
  360. a35 1
  361. .IP "\fB-m \fImachType\fR"
  362. @
  363.  
  364.  
  365. 1.1
  366. log
  367. @Initial revision
  368. @
  369. text
  370. @d1 3
  371. a3 2
  372. ' $Header: /a/newcmds/rpccmd/RCS/rpccmd.man,v 1.2 88/11/11 10:25:14 brent Exp $ SPRITE (Berkeley)
  373. .TH netroute prog
  374. d5 1
  375. a5 1
  376. .NA
  377. d7 10
  378. a16 6
  379. .SY
  380. \fBnetroute\fR  -t [-D]
  381. \fBnetroute\fR  -f \fIfile\fP
  382. \fBnetroute\fR  -h \fIspriteID\fP -m \fImachType\fP  -e \fIetherAddr\fP
  383. \fBnetroute\fR  -n \fIhostname\fP -e \fIetherAddr\fP
  384. \fBnetroute\fR  -i \fIinetAddr\fP -e \fIetherAddr\fP
  385. d25 3
  386. a27 3
  387. Install a route for a Sprite hostID.  Need -m and -e.
  388. .IP "\fB-n \fIhostname\fP"
  389. Install a route for the given host.  Route info taken from -f file
  390. d29 1
  391. a29 1
  392. .IP "\fB-i \fIinetAddr\fP"
  393. d31 1
  394. a31 1
  395. Route info taken from -f file
  396. d33 1
  397. a33 1
  398. .IP "\fB-e \fIetherAddr\fP"
  399. d35 2
  400. a36 2
  401. .IP "\fB-m \fImachType\fP"
  402. Defines the machine type of the host. (sun2 sun3 sun4 spur, etc.)
  403. d43 1
  404. a43 1
  405. file is /etc/spritehosts, and it contains the spriteID of the host,
  406. d57 2
  407. a58 2
  408. .DS
  409. /etc/spritehosts    Contains the standard host database
  410. d61 1
  411. a61 1
  412. net, route, $MACHINE, internet, ethernet
  413. @
  414.